package com.xiaoshi.enums;

import com.xiaoshi.interfaces.MyHttpServiceCode;
import com.xiaoshi.interfaces.MyHttpServiceMsg;

public enum JsonReturnEnums  {


    SUCCESS(MyHttpServiceCode.AMIS_SUCCESS, MyHttpServiceMsg.MSG_SUCCESS),
    FAIL(MyHttpServiceCode.AMIS_FAIL, MyHttpServiceMsg.MSG_FAIL),
    NULL_EXCE(MyHttpServiceCode.AMIS_FAIL, MyHttpServiceMsg.MSG_NULL_EXCE),
    NULL_PRAM(MyHttpServiceCode.AMIS_FAIL, MyHttpServiceMsg.MSG_NULL_PRAM),

    VISIT_OVERRUN(MyHttpServiceCode.AMIS_FAIL,MyHttpServiceMsg.MSG_VISIT_OVERRUN),
    /**
     * 认证 一类的
     */
    INVALID_TOKEN(MyHttpServiceCode.AMIS_FAIL, MyHttpServiceMsg.MSG_INVALID_TOKEN),
    AUTH_IS_NULL(MyHttpServiceCode.AMIS_FAIL, MyHttpServiceMsg.MSG_AUTH_IS_NULL),
    AUTHENTICATION_FAIL(MyHttpServiceCode.AMIS_FAIL, MyHttpServiceMsg.MSG_AUTHENTICATION_FAIL),
    AUTHENTICATION_TYPE_ISNOT(MyHttpServiceCode.AMIS_FAIL, MyHttpServiceMsg.MSG_AUTHENTICATION_TYPE_ISNOT),
    SQL_ERRER(MyHttpServiceCode.AMIS_FAIL, MyHttpServiceMsg.MSG_SQL_ERRER),
    REFRESH_TOKEN_INVALID(MyHttpServiceCode.AMIS_FAIL, MyHttpServiceMsg.MSG_REFRESH_TOKEN_INVALID),
    USER_ISLOCK(MyHttpServiceCode.AMIS_FAIL, MyHttpServiceMsg.MSG_USER_ISLOCK),
    PASSWORD_ERRER(MyHttpServiceCode.AMIS_FAIL, MyHttpServiceMsg.MSG_PASSWORD_ERRER),
    ACCOUNT_NOT_FIND(MyHttpServiceCode.AMIS_FAIL, MyHttpServiceMsg.MSG_ACCOUNT_NOT_FIND),
    NO_PREM(MyHttpServiceCode.AMIS_FAIL, MyHttpServiceMsg.MSG_NO_PREM),
    NOT_FIND_GRANT_TYPE(MyHttpServiceCode.AMIS_FAIL, MyHttpServiceMsg.MSG_NOT_FIND_GRAND_TYPE),
    ACCOUNT_NOT_SUPPORTED_LOGIN(MyHttpServiceCode.AMIS_FAIL,MyHttpServiceMsg.MSG_ACCOUNT_NOT_SUPPORTED_LOGIN),
    GRANT_TYPE_IS_NULL(MyHttpServiceCode.AMIS_FAIL,MyHttpServiceMsg.MSG_GRANT_TYPE_IS_NULL),
    CLIENT_ID_IS_NULL(MyHttpServiceCode.AMIS_FAIL,MyHttpServiceMsg.MSG_CLIENT_ID_IS_NULL),
    OAUTH_TOKEN_CONCURRENCY(MyHttpServiceCode.AMIS_FAIL,MyHttpServiceMsg.MSG_OAUTH_TOKEN_CONCURRENCY),

    /**
     * 资源一类的
     */
    GETAWAY_INTRANSITE_EXCEPTION(MyHttpServiceCode.SC_INTERNAL_SERVER_ERROR, MyHttpServiceMsg.MSG_GETAWAY_INTRANSITE_EXCEPTION),
    SERVICE_NO_FIND(MyHttpServiceCode.SC_INTERNAL_SERVER_ERROR, MyHttpServiceMsg.MSG_SERVICE_NO_FIND),
    SERVICE_NO_LINK(MyHttpServiceCode.SC_INTERNAL_SERVER_ERROR, MyHttpServiceMsg.MSG_SERVICE_NO_LINK),
    RESCOUSE_NO_FIND(MyHttpServiceCode.SC_INTERNAL_SERVER_ERROR, MyHttpServiceMsg.MSG_RESCOUSE_NO_FIND),
    SERVICE_NO_GETAWAY(MyHttpServiceCode.SC_INTERNAL_SERVER_ERROR, MyHttpServiceMsg.MSG_SERVICE_NO_GETAWAY),
    SERVICE_DISABLE_AND_TIME_OUT(MyHttpServiceCode.SC_INTERNAL_SERVER_ERROR, MyHttpServiceMsg.MSG_SERVICE_DISABLE_AND_TIME_OUT),
    SERVICE_EXCEPTION(MyHttpServiceCode.SC_INTERNAL_SERVER_ERROR, MyHttpServiceMsg.MSG_SERVICE_EXCEPTION),
    SERVICE_DISABLE(MyHttpServiceCode.SC_INTERNAL_SERVER_ERROR, MyHttpServiceMsg.MSG_SERVICE_DISABLE),
    SERVICE_TIME_OUT(MyHttpServiceCode.SC_INTERNAL_SERVER_ERROR, MyHttpServiceMsg.MSG_SERVICE_TIME_OUT),
    SERVICE_NO_FIND_URL(MyHttpServiceCode.SC_INTERNAL_SERVER_ERROR, MyHttpServiceMsg.MSG_NO_FIND_URL);



    private Integer code;
    private String desc;

    JsonReturnEnums(Integer code, String desc) {

        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
